import { axios } from "@/utils/request";

const api = {
    pageList: "/expenses/businessOrder/pageList",                 //分页查询业务订单
    getByCrmGoodsOrderId: "/expenses/businessOrder/getByCrmGoodsOrderId",                 //订单详情
    sysPageList: "/expenses/businessOrder/sysPageList",                 //分页查询业务订单(系统)
    
};


/**
 * 分页查询业务订单
 */
export function pageList(data) {
    return axios({
      url: api.pageList,
      method: "post",
      data: data
    });
}

/**
 * 订单详情
 */
 export function getByCrmGoodsOrderId(data) {
    return axios({
      url: api.getByCrmGoodsOrderId,
      method: "get",
      params: data
    });
}

export function sysPageList(data) {
  return axios({
    url: api.sysPageList,
    method: "post",
    params: data
  });
}